import React from 'react'
import {HashRouter as Router,Link,Route} from 'react-router-dom'
import Main from '../Main';
import About from '../about';
import Topics from '../topic';
import Home from './Home';

//Router 是 HashRouter 的别名

export default class Rrouter2 extends React.Component {
    render() {
        return (
            <Router>
                <Home>
                    <Route exact={true} path="/" component={Main}></Route>
                    <Route path="/about" component={About}></Route>
                    <Route path="/topics" component={Topics}></Route>
                </Home>
            </Router>
        )
    }
}
